<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>逆转世界</title>
</head>

<style>
    .hello {
        color: black;
        font-size: 20px;
    }
</style>

<body>
    <div id="app">
        <p class="hello">{{ isFan?'dlroW, olleH':'Hello,World' }}</p>

        <button @click="isFan = !isFan">逆转世界</button>
    </div>

    <script src="./vue.js"></script>
    <script>
        const app = new Vue({
            el: '#app',
            data: {
                isFan:false,
            }
           
        })
    </script>

</body>

</html>